package controllers

import (
	"github.com/astaxie/beego"
	"fmt"

	
)

type MainController struct {
	beego.Controller
}

func (c *MainController) Get() {

	fmt.Println("fdsfdsfsdfsdf");
	ckUser := c.GetSession("username")
	fmt.Println(ckUser);
	if(ckUser!=nil){
	  c.TplName = "trueIndex.tpl"
	}
	   
	
	fmt.Println(ckUser);
	c.Data["Website"] = "beego.me"
	c.Data["Email"] = "astaxie@gmail.com"
	c.TplName = "index.tpl"
}
